package blue.blog;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.blue.crawler.Crawler;

public class Main
{
	public static void main(String[] args)
	{
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring/*.xml");
		
		Crawler crawler = ctx.getBean(Crawler.class);
		crawler.start();
		
		crawler.stop();
		ctx.registerShutdownHook();
	}
}
